import { fetch } from '../services/templates';

const Model = {
  namespace: 'templates',
  state: {},
  effects: {
    *fetch({ payload, callback }, { call }) {
      const response = yield call(fetch, payload);
      if (callback) {
        callback(response);
      }
    },
  },
  reducers: {},
};
export default Model;
